﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="UserDetail_dynamic.aspx.cs" Inherits="MedicalCare.Admin.UserDetail_dynamic" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:Panel ID="pnlFamily" runat="server" GroupingText="被监护者基本信息">
        <asp:Button ID="btnAddMore" runat="server" Text="添加新家属"  onclick="btnAddMore_Click" />
        <asp:Button ID="btnGetAllFamily" runat="server" Text="获取所有家属信息"  onclick="btnGetAllFamily_Click" />

        <asp:DataList ID="FamilyList" runat="server" CellPadding="2" 
            onitemcommand="FamilyList_ItemCommand">
            <ItemTemplate>
                <table>
                    <tr>
                        <td>
                            姓名
                        </td>
                        <td>
                            <asp:TextBox ID="tbFamilyName" Text='<%# DataBinder.Eval(Container.DataItem, "Name")%>' runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td>
                            年龄
                        </td>
                        <td>
                            <asp:TextBox ID="tbFamilyAge" Text='<%# DataBinder.Eval(Container.DataItem, "Age")%>'  runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btnDel" runat="server" Text="删除"  CommandName="del" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Index")%>' />
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
    </asp:Panel>
</asp:Content>
